<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="java.sql.*" %>
<%@ page contentType="text/html; charset=utf-8"%>
<jsp:useBean id="delete" class="bean.deletebean"></jsp:useBean>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>删除页面</title>
</head>
<body>
 <%
     try{
      String subject=request.getParameter("subject");
      if(delete.delete(subject)){
    	  out.print("留言删除成功！");
          out.println("<a href='manage.jsp'>返回管理页面</a>");
      }else{
    	  out.print("留言删除失败！");
          out.println("<a href='manage.jsp'>返回管理页面</a>");
      }     
      }catch(Exception ex){
        ex.printStackTrace();
       }
      
     %>
</body>
</html>